#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: _03_dataflow_error.py 
@version:
@time: 2022/01/07 
"""


# ***** building *****

class TaskBuildError(Exception):
    def __str__(self):
        return "TaskBuildError"


class DataFlowBuildError(Exception):
    def __str__(self):
        return "DataFlowBuildError"


class DataFlowRelationBuildError(Exception):
    def __str__(self):
        return "DataFlowRelationBuildError"


class NodeInitError(Exception):
    def __str__(self):
        return "NodeInitError"


class DataFlowRemoveFail(Exception):
    def __str__(self):
        return "DataFlowRemoveFail"


class DataFlowUpdateError(Exception):
    def __str__(self):
        return "DataFlowUpdateError"


class DataFlowCreateError(Exception):
    def __str__(self):
        return "DataFlowCreateError"


class TaskCreateError(Exception):
    def __str__(self):
        return "TaskCreateError"


class TaskDeleteTimeout(Exception):
    def __str__(self):
        return "TaskDeleteTimeout"


# ***** status *****


class DataFlowNotFound(Exception):
    def __str__(self):
        return "DataFLowNotFound"


class DataFlowError(Exception):
    def __str__(self):
        return "DataFlowError"


class TaskError(Exception):
    def __str__(self):
        return "TaskError"


class TaskNotFound(Exception):
    def __str__(self):
        return "TaskNotFound"


# **** data statistics ****

class TaskStatisticsError(Exception):
    def __str__(self):
        return '任务统计事件错误'
